package com.yuke.cloud.service.cmc.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


@ApiModel(value="com.yuke.cloud.service.cmc.entity.CmsCouponReceive")
@Table(name = "cms_coupon_receive")
@Data
public class CmsCouponReceive {
    /**
     * 主键，自增
     */
    @Id
    @ApiModelProperty(value="id主键，自增")
    private Long couponReceiveId;

    /**
     * 领券类型：0用户，1商户
     */
    @Column(name = "receive_type")
    @ApiModelProperty(value="receiveType领券类型：0用户，1商户")
    private Byte receiveType;

    /**
     * 优惠券id
     */
    @Column(name = "coupon_id")
    @ApiModelProperty(value="couponId优惠券id")
    private Long couponId;

    /**
     * 用户id或商户id
     */
    @Column(name = "receive_id")
    @ApiModelProperty(value="receiveId用户id或商户id")
    private Long receiveId;

    /**
     * 订单id
     */
    @Column(name = "order_id")
    @ApiModelProperty(value="orderId订单id")
    private Long orderId;

    /**
     * 来源：0页面领取，1系统发放
     */
    @Column(name = "source_key")
    @ApiModelProperty(value="sourceKey来源：0页面领取，1系统发放")
    private Byte sourceKey;

    /**
     * 领取时间
     */
    @Column(name = "add_time")
    @ApiModelProperty(value="addTime领取时间")
    private Date addTime;

    /**
     * 使用时间
     */
    @Column(name = "used_time")
    @ApiModelProperty(value="usedTime使用时间")
    private Date usedTime;

    /**
     * 发券人
     */
    @ApiModelProperty(value="referer发券人")
    private String referer;

    /**
     * 0正常，1已使用，2过期
     */
    @Column(name = "coupon_status")
    @ApiModelProperty(value="couponStatus0正常，1已使用，2过期")
    private Byte couponStatus;

    @Column(name = "update_user")
    @ApiModelProperty(value="updateUser")
    private Long updateUser;

    @Column(name = "update_time")
    @ApiModelProperty(value="updateTime")
    private Date updateTime;


}